package com.artron.mediaartron.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Class description here
 *
 * @author doing
 * @version 1.0.0
 * @since 2017-10-18.
 */

public class UploadMaterialData implements Parcelable {

    @Override
    public String toString() {
        return "UploadMaterialData{" +
                "originalImagePath='" + originalImagePath + '\'' +
                ", smallThumbnailImagePath='" + smallThumbnailImagePath + '\'' +
                ", id='" + id + '\'' +
                ", bigThumbnailImagePath='" + bigThumbnailImagePath + '\'' +
                ", passportId='" + passportId + '\'' +
                '}';
    }

    /**
     * originalImagePath : http://test2.artup.com/original/2017/8/4/888/5a0a1fe804754a2b9c0aaf47fc44892c.jpg
     * smallThumbnailImagePath : http://test2.artup.com/thumbnail/2017/8/4/888/288674baac5141a780eed54ea4d67762_200.jpg
     * id : fc035928f9a9471797d8938975630121
     * bigThumbnailImagePath : http://test2.artup.com/thumbnail/2017/8/4/888/8b7c5a8a9e70454b9973f4a2300fae64_740.jpg
     * passportId : 888
     */

    private String originalImagePath;
    private String smallThumbnailImagePath;
    private String id;
    private String bigThumbnailImagePath;
    private String passportId;

    public String getOriginalImagePath() {
        return originalImagePath;
    }

    public void setOriginalImagePath(String originalImagePath) {
        this.originalImagePath = originalImagePath;
    }

    public String getSmallThumbnailImagePath() {
        return smallThumbnailImagePath;
    }

    public void setSmallThumbnailImagePath(String smallThumbnailImagePath) {
        this.smallThumbnailImagePath = smallThumbnailImagePath;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBigThumbnailImagePath() {
        return bigThumbnailImagePath;
    }

    public void setBigThumbnailImagePath(String bigThumbnailImagePath) {
        this.bigThumbnailImagePath = bigThumbnailImagePath;
    }

    public String getPassportId() {
        return passportId;
    }

    public void setPassportId(String passportId) {
        this.passportId = passportId;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.originalImagePath);
        dest.writeString(this.smallThumbnailImagePath);
        dest.writeString(this.id);
        dest.writeString(this.bigThumbnailImagePath);
        dest.writeString(this.passportId);
    }

    public UploadMaterialData() {
    }

    protected UploadMaterialData(Parcel in) {
        this.originalImagePath = in.readString();
        this.smallThumbnailImagePath = in.readString();
        this.id = in.readString();
        this.bigThumbnailImagePath = in.readString();
        this.passportId = in.readString();
    }

    public static final Parcelable.Creator<UploadMaterialData> CREATOR = new Parcelable.Creator<UploadMaterialData>() {
        @Override
        public UploadMaterialData createFromParcel(Parcel source) {
            return new UploadMaterialData(source);
        }

        @Override
        public UploadMaterialData[] newArray(int size) {
            return new UploadMaterialData[size];
        }
    };
}
